package top.caoayu.dao;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.stereotype.Repository;
import top.caoayu.pojo.User;

import java.util.Collections;
import java.util.List;

@AllArgsConstructor
@Data
@Repository
public class UserDaoImpl {
    public List<User> findAll() {
        return Collections.singletonList(new User("caoayu", 18));
    }

    public void addUser() {
        System.out.println("adduser method");
    }
}
